﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Driver;

namespace TransCode.Logic
{
    public class MongoDbHelper
    {
        static MongoServer server;

        static MongoDbHelper()
        {
            string connectionString = "mongodb://localhost";
            server = MongoServer.Create(connectionString);
        }

        public static MongoDatabase DbInstance()
        {
            MongoDatabase database = server.GetDatabase("TransCode");
            return database;
        }
    }
}
